package org.darkforest.common.services.impl;

import java.util.List;

import org.darkforest.common.services.CmsSpecialCommentUpService;
import org.darkforest.dao.mapper.CmsSpecialCommentUpMapper;
import org.darkforest.model.CmsSpecialCommentUp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CmsSpecialCommentUpServiceImpl implements CmsSpecialCommentUpService {
    @Autowired
    private CmsSpecialCommentUpMapper specialCommentUpMapper;

    @Override
    public CmsSpecialCommentUp selectByPrimaryKey(Integer upId) {
        return specialCommentUpMapper.selectByPrimaryKey(upId);
    }

    @Override
    public List<CmsSpecialCommentUp> selectListByCondition(CmsSpecialCommentUp record) {
        return specialCommentUpMapper.selectListByCondition(record);
    }

    @Override
    public int deleteByPrimaryKey(Integer upId) {
        return specialCommentUpMapper.deleteByPrimaryKey(upId);
    }

    @Override
    public int insert(CmsSpecialCommentUp record) {
        return specialCommentUpMapper.insert(record);
    }

    @Override
    public int insertSelective(CmsSpecialCommentUp record) {
        return specialCommentUpMapper.insertSelective(record);
    }

    @Override
    public int updateByPrimaryKeySelective(CmsSpecialCommentUp record) {
        return specialCommentUpMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(CmsSpecialCommentUp record) {
        return specialCommentUpMapper.updateByPrimaryKey(record);
    }
}
